package com.spring.beans.factory;

import com.spring.beans.BeansException;

import java.util.Map;

/**
 * @Description: This is a sample class.
 * @Author: Simon
 */
public interface ListableBeanFactory extends BeanFactory{

    //返回指定类型的所有实例
    <T> Map<String,T> getBeansOfType(Class<T> type) throws BeansException;

    //返回定义的所有bean的名称
    String[] getBeanDefinitionNames();
}
